package org.headquarter.object;

import org.boxlayout.gui.BoxLayoutEngine;
import org.w3c.dom.Element;


public class Document extends Node{

   
    Text title;
    
    public Document setTitle(Text string) {
	title = string;
	return this;
    }
    
    public Element toXml(org.w3c.dom.Document doc){
	Element e = super.toXml(doc);
	e.setAttribute("type", this.getClass().getName());
	e.setAttribute("title", title.getValue());
	return e;
    }
    
    public String getString() {
	return title.value;
    }
    
}
